<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<c:url value="/resources/css/view.css"/>" >

</head>
<body>
 
<h1>Review</h1>
<form:form modelAttribute="rating" method="POST" action="">
 <form:hidden path="ratingId"/>
 <table>
 <tr>
   <td><form:label path="mark">mark:</form:label></td>
   <td><form:input path="mark"/></td>
   <td><form:errors path="mark" cssClass="error"/></td>
  </tr>
  <tr>
  <tr>
   <td><form:label path="reviewText">write your review here:</form:label></td>
   <td><form:textarea path="reviewText" rows="5" cols="50" /></td>
   <td><form:errors path="reviewText" cssClass="error"/></td>
  </tr>
  </table>
    <table>
 <tr>
 	<td width="70"><input type="submit" value="Save" /></td>
 	<c:url var="backUrl" value="/products/view" >
 		<c:param name="itemId" value="${itemId}" />
    </c:url>
	<td><a href="${backUrl}" > back </a></td>
</tr>
</table>
</form:form>
</body>
</html>